<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
<#if app.getAllPSAppPortlets?? && app.getAllPSAppPortlets()??>
<#list app.getAllPSAppPortlets() as appPortlet>
<#if appPortlet.isEnableAppDashboard?? && appPortlet.isEnableAppDashboard()?? && appPortlet.isEnableAppDashboard() == true && appPortlet.isEnableDEDashboard?? && appPortlet.isEnableDEDashboard()?? && appPortlet.isEnableDEDashboard() == false>
<#if appPortlet.getPSSysPortlet?? && appPortlet.getPSSysPortlet()??>
<#assign sysPortlet = appPortlet.getPSSysPortlet() />
<#if appPortlet.getPSAppDataEntity?? && appPortlet.getPSAppDataEntity()??>
<#assign appDataEntity = appPortlet.getPSAppDataEntity() />
import ${srfclassname('${appDataEntity.getCodeName()}')}${srfclassname('${sysPortlet.codeName}')} from '@/widgets/${srffilepath2(appDataEntity.getCodeName())}/${srffilepath2(sysPortlet.getCodeName())}-portlet/${srffilepath2(sysPortlet.getCodeName())}-portlet.vue';
<#else>
import ${srfclassname('${sysPortlet.codeName}')} from '@/widgets/app/${srffilepath2(sysPortlet.getCodeName())}-portlet/${srffilepath2(sysPortlet.getCodeName())}-portlet.vue';
</#if>
</#if>
</#if>
</#list>
</#if>
<#if app.getAllPSAppDataEntities?? && app.getAllPSAppDataEntities()??>
<#list app.getAllPSAppDataEntities() as appDataEntity>
<#if appDataEntity.getAllPSAppPortlets?? && appDataEntity.getAllPSAppPortlets()??>
<#list appDataEntity.getAllPSAppPortlets() as appdePortlet>
<#if appdePortlet.getPSSysPortlet?? && appdePortlet.getPSSysPortlet()??>
<#assign sysPortlet = appdePortlet.getPSSysPortlet() />
import ${srfclassname('${appDataEntity.getCodeName()}')}${srfclassname('${sysPortlet.codeName}')} from '@/widgets/${srffilepath2(appDataEntity.getCodeName())}/${srffilepath2(sysPortlet.getCodeName())}-portlet/${srffilepath2(sysPortlet.getCodeName())}-portlet.vue';
</#if>
</#list>
</#if>
</#list>
</#if>

export const  PortletComponent = {
    install(v: any, opt: any) {
<#if app.getAllPSAppPortlets?? && app.getAllPSAppPortlets()??>
<#list app.getAllPSAppPortlets() as appPortlet>
<#if appPortlet.isEnableAppDashboard?? && appPortlet.isEnableAppDashboard()?? && appPortlet.isEnableAppDashboard() == true >
<#if appPortlet.getPSAppDataEntity?? && appPortlet.getPSAppDataEntity()??>
    <#assign appDataEntity = appPortlet.getPSAppDataEntity() />
    <#if appPortlet.getPSSysPortlet?? && appPortlet.getPSSysPortlet()??>
    <#assign sysPortlet = appPortlet.getPSSysPortlet() />
        v.component('app-${srffilepath2(appDataEntity.getCodeName())}-${srffilepath2(sysPortlet.getCodeName())}-portlet', ${srfclassname('${appDataEntity.getCodeName()}')}${srfclassname('${sysPortlet.codeName}')});
    </#if>
<#else>
    <#if appPortlet.getPSSysPortlet?? && appPortlet.getPSSysPortlet()??>
    <#assign sysPortlet = appPortlet.getPSSysPortlet() />
        v.component('app-${srffilepath2(sysPortlet.getCodeName())}-portlet', ${srfclassname('${sysPortlet.codeName}')});
    </#if>
</#if>
</#if>
</#list>
</#if>
<#if app.getAllPSAppDataEntities?? && app.getAllPSAppDataEntities()??>
<#list app.getAllPSAppDataEntities() as appDataEntity>
<#if appDataEntity.getAllPSAppPortlets?? && appDataEntity.getAllPSAppPortlets()??>
<#list appDataEntity.getAllPSAppPortlets() as appdePortlet>
<#if appdePortlet.getPSSysPortlet?? && appdePortlet.getPSSysPortlet()??>
<#assign sysPortlet = appdePortlet.getPSSysPortlet() />
        v.component('${srffilepath2(appDataEntity.getCodeName())}-${srffilepath2(sysPortlet.getCodeName())}-portlet', ${srfclassname('${appDataEntity.getCodeName()}')}${srfclassname('${sysPortlet.codeName}')});
</#if>
</#list>
</#if>
</#list>
</#if>
    }
};